package com.runshu.newsmartark.entity;

import java.util.ArrayList;
import java.util.List;

/**
 * Demo class
 *
 * @author yu
 * @date 2021/11/11
 * @decs：
 */

public class MqttBean {


    private HeaderBean header;
    private BodyBean body;

    public HeaderBean getHeader() {
        return header;
    }

    public void setHeader(HeaderBean header) {
        this.header = header;
    }

    public BodyBean getBody() {
        return body;
    }

    public void setBody(BodyBean body) {
        this.body = body;
    }

    public static class HeaderBean {
        private String customerId;
        private String hospitalId;
        private String command;
        private String mac;
        private String traceNo;
        private Integer reqTime;
        private Integer respTime;
        private String typeFlag;
        private Integer resultCode;
        private String userName;
        private String userCode;

        public String getUserName() {
            return userName == null ? "" : userName;
        }

        public void setUserName(String userName) {
            this.userName = userName == null ? "" : userName;
        }

        public String getUserCode() {
            return userCode == null ? "" : userCode;
        }

        public void setUserCode(String userCode) {
            this.userCode = userCode == null ? "" : userCode;
        }

        public String getCustomerId() {
            return customerId;
        }

        public void setCustomerId(String customerId) {
            this.customerId = customerId;
        }

        public String getHospitalId() {
            return hospitalId;
        }

        public void setHospitalId(String hospitalId) {
            this.hospitalId = hospitalId;
        }

        public String getCommand() {
            return command;
        }

        public void setCommand(String command) {
            this.command = command;
        }

        public String getMac() {
            return mac;
        }

        public void setMac(String mac) {
            this.mac = mac;
        }

        public String getTraceNo() {
            return traceNo;
        }

        public void setTraceNo(String traceNo) {
            this.traceNo = traceNo;
        }

        public Integer getReqTime() {
            return reqTime;
        }

        public void setReqTime(Integer reqTime) {
            this.reqTime = reqTime;
        }

        public Integer getRespTime() {
            return respTime;
        }

        public void setRespTime(Integer respTime) {
            this.respTime = respTime;
        }

        public String getTypeFlag() {
            return typeFlag;
        }

        public void setTypeFlag(String typeFlag) {
            this.typeFlag = typeFlag;
        }

        public Integer getResultCode() {
            return resultCode;
        }

        public void setResultCode(Integer resultCode) {
            this.resultCode = resultCode;
        }
    }

    public static class BodyBean {
        private Integer commCode;
        private Integer openStatus;
        private Integer lockStatus;
        private Integer checkStatus;
        private Integer consumablesNum;
        private List<String> rfidsList;
        private String temperature;
        private String humidity;

        public String getTemperature() {
            return temperature == null ? "" : temperature;
        }

        public void setTemperature(String temperature) {
            this.temperature = temperature == null ? "" : temperature;
        }

        public String getHumidity() {
            return humidity == null ? "" : humidity;
        }

        public void setHumidity(String humidity) {
            this.humidity = humidity == null ? "" : humidity;
        }

        public List<String> getRfidsList() {
            if (rfidsList == null) {
                return new ArrayList<>();
            }
            return rfidsList;
        }

        public void setRfidsList(List<String> rfidsList) {
            this.rfidsList = rfidsList;
        }

        public Integer getCommCode() {
            return commCode;
        }

        public void setCommCode(Integer commCode) {
            this.commCode = commCode;
        }

        public Integer getOpenStatus() {
            return openStatus;
        }

        public void setOpenStatus(Integer openStatus) {
            this.openStatus = openStatus;
        }

        public Integer getLockStatus() {
            return lockStatus;
        }

        public void setLockStatus(Integer lockStatus) {
            this.lockStatus = lockStatus;
        }

        public Integer getCheckStatus() {
            return checkStatus;
        }

        public void setCheckStatus(Integer checkStatus) {
            this.checkStatus = checkStatus;
        }

        public Integer getConsumablesNum() {
            return consumablesNum;
        }

        public void setConsumablesNum(Integer consumablesNum) {
            this.consumablesNum = consumablesNum;
        }
    }
}